#pragma once// chain node

#ifndef chainNode_
#define chainNode_

template <class T>
struct chainNode
{
    // data members
    T element;
    chainNode<T>* next;
    chainNode<T>* prev;

    // methods
    chainNode() {}
    chainNode(const T& element)
    {
        this->element = element;
    }
    chainNode(const T& element, chainNode<T>* next)
    {
        this->element = element;
        this->next = next;
    }
};

#endif

